<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>身份证显示生日</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style>
		.tr{background:#666666;}
		table,td,th{
			width:50%;
			
			margin:0;
			padding:0;
			text-align:center;
			border:1px solid #000;
		}
	</style>

  </head>
  
  <body>
    <table>
     	<tr class="tr">
     		<td>身份证</td>
     		<td>生日</td>
     	</tr>
  <%
  	String id[]={"010020199601026929","010020199711126928"};
  	for(int i=0;i<2;i++){
  %>
  	<tr>
  		<td><%=id[i]%></td>
  		<td><%= id[i].substring(6, 10)%>-<%= id[i].substring(10, 12)%>-<%= id[i].substring(12,14) %></td>
  	</tr>
  <%}%>
    </table>
  </body>
</html>
